package com.sky.service;


import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Component
public interface DishService {

     void delete(List<Long> ids);

    //新增菜品和对应的口味（操作两张表）
    void insert(DishDTO dishDTO);

    PageResult page(DishPageQueryDTO dishPageQueryDTO);

    DishVO getById(Long id);

    void update(DishDTO dishDTO);

    List<DishVO> listWithFlavor(Dish dish);

    List<Dish> selectByCategoryId(Long categoryId);
}
